<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;

class CreateHtmlTagsTable extends Migration
{
    public function up()
    {
        Schema::create('html_tags', function (Blueprint $table) {
            $table->increments('id');

            $table->string('name')->comment('名称，用于显示在管理后台');
            $table->string('tag')->comment('标签，用于模板调用');
            $table->text('html')->comment('html');

            $table->timestamps();
        });
    }

    public function down()
    {
        Schema::dropIfExists('html_tags');
    }
}
